/**
 * ProjectName:  mall-service
 * FileName:  PlanServiceImpl.java
 * PackageName:  com.blx.service.impl
 * Copyright (c) 2013, CYOU All Rights Reserved.
*/
package com.blx.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.blx.dao.PlanDao;
import com.blx.entity.Plan;
import com.blx.model.request.PlanRequest;
import com.blx.model.response.PlanResponse;
import com.blx.service.PlanService;
import com.blx.utils.pagination.Pagination;

/**
 * ClassName:  PlanImpl. <br/>
 * Description: PlanService接口实现 <br/>
 * @author wangwl
 * 2013-3-4 下午9:02:20 <br/>
 * @version 1.0
 */
@Service
public class PlanServiceImpl implements PlanService {

	private final Logger logger = LoggerFactory.getLogger(getClass());

	@Autowired
	private PlanDao planDao;

	/**
	 * 保存Plan实体
	 */
	public void savePlan(Plan plan) {
		planDao.savePlan(plan);
	}
	/**
	 * 更新Plan实体
	 */
	public void updatePlan(Plan plan) {
		planDao.updatePlan(plan);
	}
	/**
	 * 根据id删除Plan
	 */
	public void deletePlanById(Integer planId) {
		planDao.deletePlanById(planId);
	}
	/**
	 * 根据id获取Plan
	 */
	public Plan getPlan(Integer planId) {
		return planDao.getPlanById(planId);
	}
	/**
	 * 分页查询Plan
	 */
	public Pagination<Plan> findPagePlanAll(int pageNumber, int pageSize) {
		return planDao.findPagePlanAll(pageNumber, pageSize);
	}
	@Override
	public PlanResponse getPlanList(PlanRequest request) {
		// TODO Auto-generated method stub
		return null;
	}

}

